import request from '@/utils/request'

// 动态
export function getUserMoment(id) {
  return request({
    url: '/userMoment/getUserMoment?id=' + id,
    method: 'get'
  })
}

// 
export function addUserMoment(userMoment) {
  return request({
    url: '/userMoment/addUserMoment',
    method: 'post',
    data: userMoment
  })
}

// 
export function deleteUserMoment(id) {
  return request({
    url: '/userMoment/deleteUserMoment?id=' + id,
    method: 'get'
  })
}

// 
export function getUserSubscribedMoment(id) {
  return request({
    url: '/userMoment/getUserFan?id=' + id,
    method: 'get'
  })
}
